<template>
  <el-button type="info" @click="logout">退出登录</el-button>
</template>
<script lang="ts" setup>
import { useRouter } from 'vue-router'
const router = useRouter()
const logout = () => {
  sessionStorage.removeItem('token')
  router.push('/login')
}
</script>